package com.bootdo.order.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.bootdo.order.domain.OrderDO;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-11-18 17:07:50
 */
@Mapper
public interface OrderDao {

	OrderDO get(String id);

	OrderDO getByNoAndId(OrderDO orderDO);

	int save(OrderDO order);
	
	int update(OrderDO order);

	List<OrderDO> getOrderByPayeeForNo(Long userId);

	List<OrderDO> getOrderByNo();

	/**
	 * 获取待回调的订单列表
	 * @return
	 */
	List<OrderDO> getOrderByCallBackStatus();

	/**
	 * 更新订单回调状态
	 * @param order
	 * @return
	 */
	int updateCallBackStatus(OrderDO order);

	int updateCallBackNumber(OrderDO order);
}
